package org.xzx.shop_api.service;

import org.xzx.shop_api.entity.Address;
import org.xzx.shop_api.utils.JsonResult;

import java.util.List;

public interface AddressService {
    JsonResult addAddress(Address address);
    JsonResult listAllAddress(int id);
    JsonResult getAddressDetail(int id);
    JsonResult updateAddress(Address address);
    JsonResult deleteAddress(int id, Integer userId);
    List<Address> getAddressesWithUser(int userId);
}
